package com.ht.file.action;


import org.apache.struts2.ServletActionContext;

import com.ht.file.entity.FileDirectory;
import com.ht.file.service.FileDirectoryService;
import com.ht.right.util.CommonUtil;
import com.opensymphony.xwork2.ActionSupport;

public class FileDirectoryAction extends ActionSupport {

	private static final long serialVersionUID = 1L;
	
	private FileDirectoryService fileDirectoryService;
	private FileDirectory fileDirectory;

	//获取所有一级目录文件
	public String fileDirectoryList() {
		CommonUtil.toJsonStr(ServletActionContext.getResponse(),fileDirectoryService.fileDirectoryList());
		return null;
	}

	public FileDirectoryService getFileDirectoryService() {
		return fileDirectoryService;
	}

	public void setFileDirectoryService(FileDirectoryService fileDirectoryService) {
		this.fileDirectoryService = fileDirectoryService;
	}

	public FileDirectory getFileDirectory() {
		return fileDirectory;
	}

	public void setFileDirectory(FileDirectory fileDirectory) {
		this.fileDirectory = fileDirectory;
	}
	
}
